package org.example.config;

public class LocalUerContext {
    private static final ThreadLocal<String> localUserId  = new ThreadLocal<>();

    public static void setLocalUserId(String userId){
        localUserId.set(userId);
    }

    public static String getUserId(){
        return localUserId.get();
    }

    public static void clear(){
        localUserId.remove();
    }
}
